//
//  TestView.m
//  JiaoX
//
//  Created by yinqy on 15/1/16.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "TestView.h"

@interface TestView()
{
    UIButton *_btn;
}
@end

@implementation TestView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setFrame:CGRectMake(10, 10, 100, 100)];
        [self setBackgroundColor:[UIColor redColor]];
        
        _btn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 50, 50)];
        [_btn setBackgroundColor:[UIColor blueColor]];
        [self addSubview:_btn];
    }
    return self;
}
@end
